"use strict";

exports.__esModule = true;
exports.default = void 0;
var _normalizeWheel = _interopRequireDefault(require("normalize-wheel"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
var mousewheel = function mousewheel(element, callback) {
  if (element && element.addEventListener) {
    element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (event) {
      var normalized = (0, _normalizeWheel.default)(event);
      callback && callback.apply(this, [event, normalized]);
    });
  }
};
var _default = exports.default = {
  bind: function bind(el, binding) {
    mousewheel(el, binding.value);
  }
};